﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Administrador_Produtos_Categoria_Default" %>
<%@ Register Src="~/Controles/MenuLateralAdministrador.ascx" TagPrefix="uc" TagName="MenuLateralDireitoAdministrador" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
<style type="text/css">
    .elementos {  left:100px; position:relative; width:80%; float:left;  }
    .descricao { width:200px; float:left;  }
    .id { width:50px; float:left;  }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <uc:MenuLateralDireitoAdministrador ID="MenuLateralAdministrador" runat="server" />
    <div class="elementos">
        <asp:Label id="lblResposta" runat="server" ForeColor="Red"></asp:Label><br />

        <a href="registrar.aspx">Cadastrar nova sub categoria</a><br /><br />
       
        <asp:Repeater ID="RpSubCategoria" runat="server" >
            <ItemTemplate>
                <div class="divSubCategoria">
                    <label class="id"><%#DataBinder.Eval(Container.DataItem, "idSubCategoria")%></label>
                    <label class="descricao"><%#DataBinder.Eval(Container.DataItem, "descricao")%></label>
                    <label class="descricao"><%#DataBinder.Eval(Container.DataItem, "CategoriaProduto.Descricao")%></label>
                    <a href="registrar.aspx?id=<%#DataBinder.Eval(Container.DataItem, "idSubCategoria")%>">Editar</a>
                    <a href="default.aspx?removerId=<%#DataBinder.Eval(Container.DataItem, "idSubCategoria")%>">Remover</a>
                </div>
            </ItemTemplate>
        </asp:Repeater>
    </div>
</asp:Content>

